package com.myidis;

import com.mangofactory.swagger.configuration.SpringSwaggerConfig;
import com.mangofactory.swagger.plugin.SwaggerSpringMvcPlugin;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import springfox.documentation.service.ApiInfo;

@SpringBootApplication
@MapperScan("com.myidis.mapper") 
public class Main {

	public static void main(String[] args) {
		SpringApplication.run(Main.class, args);
	}


//
//	private SpringSwaggerConfig springSwaggerConfig;
//
//	/**
//	 * Required to autowire SpringSwaggerConfig
//	 */
//	@Autowired
//	public void setSpringSwaggerConfig(SpringSwaggerConfig springSwaggerConfig) {
//		this.springSwaggerConfig = springSwaggerConfig;
//	}
//
//	/**
//	 * Every SwaggerSpringMvcPlugin bean is picked up by the swagger-mvc
//	 * framework - allowing for multiple swagger groups i.e. same code base
//	 * multiple swagger resource listings.
//	 */
//	@Bean
//	public SwaggerSpringMvcPlugin customImplementation() {
//		return new SwaggerSpringMvcPlugin(this.springSwaggerConfig).apiInfo(apiInfo()).includePatterns(".*?");
//	}
//
//	private ApiInfo apiInfo() {
//		ApiInfo apiInfo = new ApiInfo("App Service API", "", "", "huqc@gcks.cn", "", "");
//
//		return apiInfo;
//	}
}
